package com.ruoyi.material.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 供应商对象 supplier
 * 
 * @author Q
 * @date 2024-05-28
 */
public class Supplier extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    //项目名称字段
    @Excel(name = "项目名称")
    private String projectName;

    //用户ID字段
    private Long userId;
    /** 供应商主键 */
    private Long supplierId;

    /** 项目主键 */
    @NotNull(message = "请选择项目")
    @Excel(name = "项目主键")
    private Long projectId;

    /** 供应商名称 */
    @NotBlank(message = "供应商名称不能为空")
    @Excel(name = "供应商名称")
    private String supplierName;

    /** 供应商联系人 */
    @Excel(name = "供应商联系人")
    @NotBlank(message = "供应商联系人名称不能为空")
    private String supplierPerson;

    /** 联系人电话 */
    @Excel(name = "联系人电话")
    @Pattern(regexp = "^1\\d{10}$", message = "请输入正确的手机号格式")
    @NotBlank(message = "联系人电话不能为空")
    private String supplierTel;

    /** 地址 */
    @Excel(name = "地址")
    private String supplierAddress;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String supplierEquipment;

    /** 品牌 */
    @Excel(name = "品牌")
    private String supplierBrand;

    /** 电话(座机) */
    @Excel(name = "电话(座机)")
    private String supplierLandline;

    /** 备注 */
    @Excel(name = "备注")
    private String supplierRemark;

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public void setSupplierId(Long supplierId)
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }
    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }
    public void setSupplierName(String supplierName) 
    {
        this.supplierName = supplierName;
    }

    public String getSupplierName() 
    {
        return supplierName;
    }
    public void setSupplierPerson(String supplierPerson) 
    {
        this.supplierPerson = supplierPerson;
    }

    public String getSupplierPerson() 
    {
        return supplierPerson;
    }
    public void setSupplierTel(String supplierTel) 
    {
        this.supplierTel = supplierTel;
    }

    public String getSupplierTel() 
    {
        return supplierTel;
    }
    public void setSupplierAddress(String supplierAddress) 
    {
        this.supplierAddress = supplierAddress;
    }

    public String getSupplierAddress() 
    {
        return supplierAddress;
    }
    public void setSupplierEquipment(String supplierEquipment) 
    {
        this.supplierEquipment = supplierEquipment;
    }

    public String getSupplierEquipment() 
    {
        return supplierEquipment;
    }
    public void setSupplierBrand(String supplierBrand) 
    {
        this.supplierBrand = supplierBrand;
    }

    public String getSupplierBrand() 
    {
        return supplierBrand;
    }
    public void setSupplierLandline(String supplierLandline) 
    {
        this.supplierLandline = supplierLandline;
    }

    public String getSupplierLandline() 
    {
        return supplierLandline;
    }
    public void setSupplierRemark(String supplierRemark) 
    {
        this.supplierRemark = supplierRemark;
    }

    public String getSupplierRemark() 
    {
        return supplierRemark;
    }

    @Override
    public String toString() {
        return "Supplier{" +
                "projectName='" + projectName + '\'' +
                ", userId=" + userId +
                ", supplierId=" + supplierId +
                ", projectId=" + projectId +
                ", supplierName='" + supplierName + '\'' +
                ", supplierPerson='" + supplierPerson + '\'' +
                ", supplierTel='" + supplierTel + '\'' +
                ", supplierAddress='" + supplierAddress + '\'' +
                ", supplierEquipment='" + supplierEquipment + '\'' +
                ", supplierBrand='" + supplierBrand + '\'' +
                ", supplierLandline='" + supplierLandline + '\'' +
                ", supplierRemark='" + supplierRemark + '\'' +
                '}';
    }
}
